import request from '@/utils/request'

// 查询应急救援管理列表
export function listRescueTask(query) {
  return request({
    url: '/business/rescueTask/list',
    method: 'get',
    params: query
  })
}

// 查询应急救援管理详细
export function getRescueTask(id) {
  return request({
    url: '/business/rescueTask/' + id,
    method: 'get'
  })
}

// 新增应急救援管理
export function addRescueTask(data) {
  return request({
    url: '/business/rescueTask',
    method: 'post',
    data: data
  })
}

// 修改应急救援管理
export function updateRescueTask(data) {
  return request({
    url: '/business/rescueTask',
    method: 'put',
    data: data
  })
}

// 删除应急救援管理
export function delRescueTask(id) {
  return request({
    url: '/business/rescueTask/' + id,
    method: 'delete'
  })
}
